[
  {
    "new_state": "INIT",
    "event_message": "start",
    "next_new_state": "RcveInv",
    "input": "N/A",
    "output": "N/A",
    "associatedDocument": "N/A"
  },
  {
    "new_state": "RcveInv",
    "event_message": "InvoiceApproved",
    "next_new_state": "GenPaySetNet",
    "input": {
      "invoiceId": "INV-0001",
      "from": "X",
      "to": "Y",
      "amount": 60
    },
    "output": {
      "status": true
    },
    "associatedDocument": "Approved Invoice"
  },
  {
    "new_state": "GenPaySetNet",
    "event_message": "CrossChainPayRequest",
    "next_new_state": "BridgeOut_XpBC",
    "input": {
      "payerRole": "X",
      "payeeRole": "Y",
      "amount": 60
    },
    "output": {
      "msgId": "MSG-9001",
      "toChain": "StCnBC"
    },
    "associatedDocument": "Bridge Event"
  },
  {
    "new_state": "BridgeIn_StCnBC",
    "event_message": "BridgeMessageAccepted",
    "next_new_state": "StCnPay.RcveReqInit",
    "input": {
      "msgId": "MSG-9001",
      "proof": "relayProof"
    },
    "output": {
      "mappedRequestId": "REQ-1001"
    },
    "associatedDocument": "Bridge Receipt"
  },
  {
    "new_state": "StCnPay.CalcNetPos",
    "event_message": "NetUpdated",
    "next_new_state": "SplitGate",
    "input": {
      "delta": 60
    },
    "output": {
      "netAfter": 60,
      "count": 1,
      "trigger": false
    },
    "associatedDocument": "N/A"
  },
  {
    "new_state": "StCnPay.CalcNetPos",
    "event_message": "NetTriggerReached",
    "next_new_state": "IssueSettlement",
    "input": {
      "delta": -20
    },
    "output": {
      "netAfter": 40,
      "count": 2,
      "trigger": true
    },
    "associatedDocument": "N/A"
  },
  {
    "new_state": "IssueSettlement",
    "event_message": "SettlementDecision",
    "next_new_state": "PaySetNet",
    "input": {
      "netPosition": 40
    },
    "output": {
      "payer": "X",
      "payee": "Y",
      "amount": 40
    },
    "associatedDocument": "N/A"
  },
  {
    "new_state": "PaySetNet",
    "event_message": "ERC20.Transfer",
    "next_new_state": "ResetNet",
    "input": {
      "from": "X",
      "to": "Y",
      "value": 40
    },
    "output": {
      "txHash": "0x77ba98...44440",
      "status": "0x1"
    },
    "associatedDocument": "ERC-20 Receipt"
  },
  {
    "new_state": "ResetNet",
    "event_message": "CrossChainPaymentConfirmed",
    "next_new_state": "BridgeOut_StCnBC",
    "input": {
      "settlementTx": "0x77ba98...44440"
    },
    "output": {
      "netAfterReset": 0
    },
    "associatedDocument": "Bridge Event"
  },
  {
    "new_state": "BridgeIn_XpBC",
    "event_message": "PaymentConfirmed",
    "next_new_state": "Record",
    "input": {
      "msgId": "MSG-9100"
    },
    "output": {
      "advanceFSM": true
    },
    "associatedDocument": "Bridge Receipt"
  },
  {
    "new_state": "Record",
    "event_message": "Completed",
    "next_new_state": "Stop",
    "input": {
      "localRef": "LOCAL-7788"
    },
    "output": {
      "status": true
    },
    "associatedDocument": "Local Record"
  },
  {
    "new_state": "Stop",
    "event_message": "end",
    "next_new_state": "N/A",
    "input": "N/A",
    "output": "N/A",
    "associatedDocument": "N/A"
  }
]
